#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int countBit(int n)
    {
        if (n == 0)
            return 0;
        return countBit(n / 10) + 1;
    }
    int findNumbers(vector<int>& nums) {
        int res = 0;
        for (auto& e : nums)
        {
            if (countBit(e) % 2 == 0)
                ++res;
        }
        return res;
    }
};